package top.lingkang.fas.admin.config;

import com.mybatisflex.core.FlexGlobalConfig;
import com.mybatisflex.solon.MyBatisFlexCustomizer;
import org.noear.solon.annotation.Configuration;

/**
 * https://mybatis-flex.com/zh/base/mybatis-flex-customizer.html
 * @author lingkang
 * created by 2025/7/20 4:31
 */
@Configuration
public class MyBatisFlexConfiguration implements MyBatisFlexCustomizer {
    @Override
    public void customize(FlexGlobalConfig flexGlobalConfig) {
        flexGlobalConfig.setDefaultPageSize(10);
        flexGlobalConfig.setDefaultMaxPageSize(5000);
    }
}
